class CreateEvents < ActiveRecord::Migration
  def self.up
    create_table :events do |t|
      t.column :type, :string
      
      #common attributes
      t.column :name, :string
      
    end
    
    RaidBonusEvent.create :name => "Sign-up Bonus"
    HoursEvent.create :name=>"Hours"
    
  end

  def self.down
    drop_table :events
  end
end
